package com.tang.model.prototype;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/15 16:40
 * @Desc
 * @Remarks
 */
public class Jingubang implements Cloneable {
    private String name;
    private Integer size;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    /**
     * 浅拷贝
     *
     * @return
     * @throws CloneNotSupportedException
     */
    @Override
    protected Jingubang clone() throws CloneNotSupportedException {
        return (Jingubang) super.clone();
    }

    @Override
    public String toString() {
        return "Jingubang{" +
                "name='" + name + '\'' +
                ", size=" + size +
                '}';
    }
}
